negotiator.actions
Class Accept

java.lang.Object
  extended by negotiator.actions.Action
      extended by negotiator.actions.Accept

public class Accept
extends Action

This class is used to create an action which symbolizes that an agent accepts an offer.

Author:
Dmytro Tykhonov

Constructor Summary
Accept()
          Action to accept an opponent's bid.
Accept(AgentID agentID)
          Action to accept an opponent's bid.
 
Method Summary
 java.lang.String toString()
          Enforces that actions implements a string-representation.
 
Methods inherited from class negotiator.actions.Action
getAgent, getBidFromAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Accept

public Accept()
Action to accept an opponent's bid.


Accept

public Accept(AgentID agentID)
Action to accept an opponent's bid.

Parameters:
agentID - of the opponent.
Method Detail

toString

public java.lang.String toString()
Description copied from class: Action
Enforces that actions implements a string-representation.

Specified by:
toString in class Action
Returns:
string representation of action: "(Accept)".